package it.fuesi.expired.model;

import java.util.HashMap;
import java.util.Map;

public class FindParameters {

	public FindParameters(){
		super();
	}
	
	public static final FindParameters build(){
		return new FindParameters();
	}
	
	boolean expired;

	public boolean isExpired() {
		return expired;
	}

	public FindParameters setExpired(boolean expired) {
		this.expired = expired;
		return this;
	}

	public Map<String, Object> toMap() {
		final Map<String,Object> map = new HashMap<String,Object>();
		map.put("expired", expired);
		return map;
	}

	public String toQueryString() {
		return "?expired=" + expired;
	}
	
	
}
